/*
 * XML Type:  PresentmentListResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PresentmentListResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PresentmentListResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PresentmentListResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.PresentmentListResponse
{
    
    public PresentmentListResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BILLPUB$0 = 
        new javax.xml.namespace.QName("", "BILLPUB");
    private static final javax.xml.namespace.QName USERID$2 = 
        new javax.xml.namespace.QName("", "USERID");
    private static final javax.xml.namespace.QName DTSTART$4 = 
        new javax.xml.namespace.QName("", "DTSTART");
    private static final javax.xml.namespace.QName DTEND$6 = 
        new javax.xml.namespace.QName("", "DTEND");
    private static final javax.xml.namespace.QName PRESLIST$8 = 
        new javax.xml.namespace.QName("", "PRESLIST");
    private static final javax.xml.namespace.QName PRESCOUNTS$10 = 
        new javax.xml.namespace.QName("", "PRESCOUNTS");
    
    
    /**
     * Gets the "BILLPUB" element
     */
    public java.lang.String getBILLPUB()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLPUB$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLPUB" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetBILLPUB()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(BILLPUB$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BILLPUB" element
     */
    public void setBILLPUB(java.lang.String billpub)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLPUB$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLPUB$0);
            }
            target.setStringValue(billpub);
        }
    }
    
    /**
     * Sets (as xml) the "BILLPUB" element
     */
    public void xsetBILLPUB(net.ofx.types.x2003.x04.GenericNameType billpub)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(BILLPUB$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(BILLPUB$0);
            }
            target.set(billpub);
        }
    }
    
    /**
     * Gets the "USERID" element
     */
    public java.lang.String getUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "USERID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "USERID" element
     */
    public void setUSERID(java.lang.String userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERID$2);
            }
            target.setStringValue(userid);
        }
    }
    
    /**
     * Sets (as xml) the "USERID" element
     */
    public void xsetUSERID(net.ofx.types.x2003.x04.IdType userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(USERID$2);
            }
            target.set(userid);
        }
    }
    
    /**
     * Gets the "DTSTART" element
     */
    public java.lang.String getDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSTART$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTSTART" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSTART$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTSTART" element
     */
    public void setDTSTART(java.lang.String dtstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSTART$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTSTART$4);
            }
            target.setStringValue(dtstart);
        }
    }
    
    /**
     * Sets (as xml) the "DTSTART" element
     */
    public void xsetDTSTART(net.ofx.types.x2003.x04.DateTimeType dtstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSTART$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTSTART$4);
            }
            target.set(dtstart);
        }
    }
    
    /**
     * Gets the "DTEND" element
     */
    public java.lang.String getDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEND$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEND" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEND$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTEND" element
     */
    public void setDTEND(java.lang.String dtend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEND$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEND$6);
            }
            target.setStringValue(dtend);
        }
    }
    
    /**
     * Sets (as xml) the "DTEND" element
     */
    public void xsetDTEND(net.ofx.types.x2003.x04.DateTimeType dtend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEND$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEND$6);
            }
            target.set(dtend);
        }
    }
    
    /**
     * Gets the "PRESLIST" element
     */
    public net.ofx.types.x2003.x04.PresentmentList getPRESLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentList target = null;
            target = (net.ofx.types.x2003.x04.PresentmentList)get_store().find_element_user(PRESLIST$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESLIST" element
     */
    public boolean isSetPRESLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESLIST$8) != 0;
        }
    }
    
    /**
     * Sets the "PRESLIST" element
     */
    public void setPRESLIST(net.ofx.types.x2003.x04.PresentmentList preslist)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentList target = null;
            target = (net.ofx.types.x2003.x04.PresentmentList)get_store().find_element_user(PRESLIST$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentList)get_store().add_element_user(PRESLIST$8);
            }
            target.set(preslist);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESLIST" element
     */
    public net.ofx.types.x2003.x04.PresentmentList addNewPRESLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentList target = null;
            target = (net.ofx.types.x2003.x04.PresentmentList)get_store().add_element_user(PRESLIST$8);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESLIST" element
     */
    public void unsetPRESLIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESLIST$8, 0);
        }
    }
    
    /**
     * Gets the "PRESCOUNTS" element
     */
    public net.ofx.types.x2003.x04.PresentmentCounts getPRESCOUNTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentCounts target = null;
            target = (net.ofx.types.x2003.x04.PresentmentCounts)get_store().find_element_user(PRESCOUNTS$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESCOUNTS" element
     */
    public boolean isSetPRESCOUNTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESCOUNTS$10) != 0;
        }
    }
    
    /**
     * Sets the "PRESCOUNTS" element
     */
    public void setPRESCOUNTS(net.ofx.types.x2003.x04.PresentmentCounts prescounts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentCounts target = null;
            target = (net.ofx.types.x2003.x04.PresentmentCounts)get_store().find_element_user(PRESCOUNTS$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentCounts)get_store().add_element_user(PRESCOUNTS$10);
            }
            target.set(prescounts);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESCOUNTS" element
     */
    public net.ofx.types.x2003.x04.PresentmentCounts addNewPRESCOUNTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentCounts target = null;
            target = (net.ofx.types.x2003.x04.PresentmentCounts)get_store().add_element_user(PRESCOUNTS$10);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESCOUNTS" element
     */
    public void unsetPRESCOUNTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESCOUNTS$10, 0);
        }
    }
}
